home *** CD-ROM | disk | FTP | other *** search
/ Clickx 115 / Clickx 115.iso / software / tools / windows / tails-i386-0.16.iso / live / filesystem.squashfs / usr / lib / pm-utils / sleep.d / 01laptop-mode
Encoding:
Text File  |  2012-05-20  |  487 b   |  23 lines

  1. #!/bin/sh
  2. #
  3. # 01laptop-mode: Re-apply laptop mode tools settings
  4.  
  5. if [ -f /etc/pm/sleep.d/99laptop-mode ]; then
  6.     continue
  7. else
  8.     case "$1" in
  9.         hibernate|suspend)
  10.             # Stopping is not required.
  11.             ;;
  12.         thaw|resume)
  13.             # Make laptop mode tools forcibly re-apply the hardware settings
  14.             # that laptop mode tools applies.            
  15.             if [ -e /usr/sbin/laptop_mode ] ; then
  16.                 /usr/sbin/laptop_mode auto force
  17.             fi
  18.             ;;
  19.         *) exit $NA
  20.             ;;
  21.     esac
  22. fi
  23.